package com.futu.intelligence.mapper;


import com.futu.intelligence.entity.Favorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FavoriteMapper {
    int insert(Favorite favorite);
    int delete(@Param("userId") Long userId, @Param("planId") Integer planId);
    Favorite findByUserIdAndPlanId(@Param("userId") Long userId, @Param("planId") Integer planId);
    List<Favorite> findByUserId(Long userId);
}
